<?php   
        $seo_title=$this->ts_functions->getsettings('sitetitle','text'); 
        $seodescr       =$this->ts_functions->getsettings('seodescr','text');
		$seoauthor      = $this->ts_functions->getsettings('siteauthor','text');
		$ogImage        =  $this->ts_functions->getsettings('logo','url');
		$ogUrl              =  $basepath;
		$meta_keywords= $this->ts_functions->getsettings('metatags','text');
		if(isset($page_seo)){
		 $seo_title      =($page_seo['seo_title']!= '') ? $page_seo['seo_title']  : $seo_title;
		 $seodescr = ($page_seo['seodescr']!= '') ? $page_seo['seodescr']  : $seodescr;
		 $meta_keywords = ($page_seo['seo_keywords']!= '') ? $page_seo['seo_keywords']  : $meta_keywords;
		 $ogImage = ($page_seo['seo_Image']!= '') ? $page_seo['seo_Image']  : $ogImage;
	    }
?>
<!DOCTYPE html>
<html>
<head>
	<title><?php echo $seo_title;?></title>
	<meta content="<?php echo $seo_title;?>" property="og:title">
	<meta content="website" property="og:type">
	<meta content="<?php echo $ogUrl;?>" property="og:url">
	<meta content="<?php echo $ogImage;?>" property="og:image">
	<meta content="<?php echo $seodescr;?>" property="og:description">
	<meta content="<?php echo $this->ts_functions->getsettings('sitename','text');?>" property="og:site_name">
	<meta name="description"  content="<?php echo $seodescr;?>"/>
	<meta name="keywords" content="<?php echo $meta_keywords;?>">
	<meta name="author" content="<?php echo $seoauthor;?>"/>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta name="MobileOptimized" content="320">

<!-- Main css -->
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/fonts.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/bootstrap.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/font-awesome.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/animate.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/owl.carousel.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/color.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/style.css" media="screen"/>
<link rel="stylesheet" href="<?php echo $basepath;?>themes/default/css/responsive.css" media="screen"/>
<?php if($this->ts_functions->getsettings('rtlswitch','checkbox') == '1') echo "<link rel='stylesheet' href='$basepath"."themes/default/css/rtl.css' media='screen'/>" ?>
<!-- favicon links -->
<link rel="shortcut icon" type="image/png" href="<?php echo $this->ts_functions->getsettings('favicon','url');?>" />
<style name="custom">
<?php echo $this->ts_functions->getsettings('customcss','text') ?>
</style>
<!-- Version 4.3 -->
</head>
